﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Silverlight_Client.Commands_Utils;
using System.Collections.ObjectModel;
using Silverlight_Client.Models;

namespace Silverlight_Client.ViewModels
{
    public class HomeAccordionVM : IViewModelBase
    {
        #region Fields

        private ObservableCollection<LastUpdate>        _lastupdateitems;
        private ObservableCollection<SubscribedUser>    _subscribedusernames;
        private ObservableCollection<SearchHistory>     _searchhistoryitems;
       
        #endregion

        #region Properties

        public ObservableCollection<LastUpdate> LastUpdate_Items
        {
            get { return _lastupdateitems; }
            set
            {
                if (_lastupdateitems == value) return;
                _lastupdateitems = value;
                RaisePropertyChanged("LastUpdate_Items");
            }
        }
        public ObservableCollection<SubscribedUser> SubscribedUser_Names
        {
            get { return _subscribedusernames; }
            set
            {
                if (_subscribedusernames == value) return;
                _subscribedusernames = value;
                RaisePropertyChanged("SubscribedUser_Names");
            }
        }
        public ObservableCollection<SearchHistory> SearchHistory_Items
        {
            get { return _searchhistoryitems; }
            set
            {
                if (_searchhistoryitems == value) return;
                _searchhistoryitems = value;
                RaisePropertyChanged("SearchHistory_Items");
            }
        } 
        #endregion

        #region Commands
        
        #endregion

        #region Commands Functions
        
        #endregion

        #region Functions
        
        #endregion

        #region Ctor

        public HomeAccordionVM()
        {
            _lastupdateitems = new ObservableCollection<LastUpdate>();
            _subscribedusernames = new ObservableCollection<SubscribedUser>();
            _searchhistoryitems = new ObservableCollection<SearchHistory>();
        }

        #endregion
    }
}
